PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-09-02 10:23:51.639794+00:00 (UTC)
In US/Central Time, this is 2024-09-02 05:23:51.639794-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/8caeaa13dce50ad76091c3baa3d2d746a8e2c3052928256011b4c0f05eb37247.png
We are just generating a random time serie here.
../../_images/69e78e51c2bf40fb2e4b86742cc3295e1b313fe7322aafb5622ca5ac7633da44.png
../../_images/f3aba02b60212d19e8a5f7eb1c6c3c18a8960494046a4710d560e472278db8d7.png